Created: 2022-07-15
Tags: #fleeting
Normally, SSH are authenticated with
-> username
-> password
Some SSH are configured with
-> key authentication
uses public and private keys to prove client is valid
By default, SSH keys are RSA keys
But you can
SSH keyssh-keygen can do all of that aboveThe ~/.ssh folder is the default place to store these Keys for OpenSSH.
authorized_keys - holds public keys that are allowed to access the server if key authentication is enabled
Passphrase to decrypt key isn’t used to identify you to the server at all,
all it does is decrypt the SSH key.
The passphrase is never transmitted, and never leaves your system.
SSH Keys can upgrade reverse shell
Using tools like John the Ripper, you can attack an encrypted SSH key to attempt to find the passphrase, which highlights the importance of using a secure passphrase and keeping your private key private.